import request from '@/utils/request'

// 开票搜索，分页
export function getProjectInvocieList(params) {
  return request({
    url: '/projectInvocie/list',
    method: 'POST',
    params
  })
}

// 查询项目名称
export function selectProjectName(params) {
  return request({
    url: '/projectInvocie/ProjectName',
    method: 'POST',
    params
  })
}

// 添加开票数据
export function addProjectInvocie(data) {
  return request({
    url: '/projectInvocie/add',
    method: 'post',
    data
  })
}

// 从员工表了查询开票人
export function selectOperator(params) {
  return request({
    url: '/projectInvocie/operator',
    method: 'POST',
    params
  })
}

// 修改开票数据
export function updateProjectInvocie(data) {
  return request({
    url: '/projectInvocie/update',
    method: 'POST',
    data
  })
}

// 查询开票单条数据
export function selectProjectInvocie(params) {
  return request({
    url: '/projectInvocie/load',
    method: 'POST',
    params
  })
}

// 删除单条开票数据
export function deleteProjectInvocie(params) {
  return request({
    url: '/projectInvocie/delete',
    method: 'POST',
    params
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}
